<?php
require_once("xforms/Core.php");

class XForms_instance extends XForms_Core {
  protected $tpl='new XForms_instance({renderJson},{renderChildNodes})';
  protected $script = '';
  function renderChildNodes($whiteList=array(), $blackList=array(), $glue = '') {
    $phpNode = $this->xforms_processor->xmlToPhp($this->node);
    return json_encode($phpNode->_childNodes);
  }
}
